ea4aa95fb609b56dcde4adc56cf311edf4ff3c0e,graylog2-server/src/main/java/org/graylog2/alerts/types/MessageCountAlertCondition.java,MessageCountAlertCondition,MessageCountAlertCondition,#Searches#Stream#String#DateTime#String#Map#,61
Before Change
super(stream, id, Type.MESSAGE_COUNT, createdAt, creatorUserId, parameters);
this.searches = searches;
this.time = Integer.parseInt(String.valueOf(parameters.get("time")));
this.thresholdType = ThresholdType.valueOf(((String) parameters.get("threshold_type")).toUpperCase(Locale.ENGLISH));
this.threshold = Integer.parseInt(String.valueOf(parameters.get("threshold")));
}
After Change
super(stream, id, Type.MESSAGE_COUNT, createdAt, creatorUserId, parameters);
this.searches = searches;
this.time = getNumber(parameters.get("time")).orElse(0).intValue();
this.thresholdType = ThresholdType.valueOf(((String) parameters.get("threshold_type")).toUpperCase(Locale.ENGLISH));
this.threshold = getNumber(parameters.get("threshold")).orElse(0).intValue();
}